public class 三种死循环 {
    public static void main(String[] args) {
        forDead();
    }

    static void forDead(){
        for(;;){
            System.out.println("hello");
        }
    }

    static void whileDead(){
        while (true){
            System.out.println("yes");
        }
    }

    static void doWhileDead(){
        do{
            System.out.println("yeah");
        }while (true);
    }
}
